package com.atguigu.mapper;

import com.atguigu.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program:weiblog-server
 * @author: 马雨清
 * @Time: 2023/8/21  11:15
 * @description:
 */
@Mapper
public interface ArticleMapper {
    List<Article> selectAllArticle(@Param("vo") Article article);

    List<Article> selectArticleByUid(Integer uid);

    Article selectArticleById(Integer id);

    Integer updateArticle(@Param("article") Article article);

    Integer insertArticle(@Param("article") Article article);

    Integer deleteById(Integer id);
}
